home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 November / PCWorld_2006-11_cd.bin / domacnost a kancelar / opencontacts / ocusetup.exe / setup.exe / {code_GetDataFolder} / Templates / defaultPhoneOnly.xsl < prev    next >
Extensible Markup Language  |  2006-10-03  |  2KB  |  86 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5. <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" />
  6.  
  7.   <xsl:template match="/">
  8.     <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  11. </head>
  12.  
  13.       <body>
  14.         <xsl:for-each select="OpenContacts/Contacts/Contact">
  15.  
  16.           <table border="0" width="100%" id="table2">
  17.             <tr>
  18.               <td width="80%">
  19.                 <font face="Times New Roman" size="3">
  20.                   <b>
  21.                     <xsl:value-of select="@Name"/>
  22.                   </b>
  23.                 </font>
  24.               </td>
  25.             </tr>
  26.           </table>
  27.  
  28.           <xsl:for-each select="Sections/Section">
  29.  
  30.  
  31.             <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
  32.               <xsl:for-each select="Fields/Field">
  33.                       <xsl:choose>
  34.  
  35.  
  36.                         <xsl:when test="@Action='phone'">
  37.                 <tr>
  38.                   <td width="15"></td>
  39.                   <td width="80" bgcolor="#C3D9FF">
  40.               <b>
  41.                     <font face="Times New Roman" size="2">
  42.                       <xsl:value-of select="../../@Name"/>
  43.                     </font>
  44.               </b>
  45.                   </td>
  46.           
  47.           
  48.                   <td width="80" bgcolor="#C3D9FF">
  49.                 <font face="Times New Roman" size="2">
  50.                   <xsl:value-of select="@Name"/>:
  51.                 </font>
  52.                   </td>
  53.                   <td bgcolor="#E0ECFF">
  54.                     <font size="3">
  55.  
  56.  
  57.                             <xsl:value-of select="@Value"/>
  58.  
  59.  
  60.  
  61.                     </font>
  62.                   </td>
  63.                 </tr>
  64.                         </xsl:when>
  65.  
  66.  
  67.                       </xsl:choose>
  68.               </xsl:for-each>
  69.  
  70.             </table>
  71.  
  72.  
  73.           </xsl:for-each>
  74.  
  75.  
  76.         </xsl:for-each>
  77.  
  78.  
  79.  
  80.  
  81.  
  82.       </body>
  83.     </html>
  84.   </xsl:template>
  85.  
  86. </xsl:stylesheet>